<%--
  Created by IntelliJ IDEA.
  User: 梁玉杰
  Date: 2021/6/9
  Time: 11:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <form action="${pageContext.request.contextPath}/deleteAll" method="post">
        用户列表:
        <table width="75%" border="1" border="1">
            <tr>
                <td>选中删除</td>
                <td>用户名字</td>
                <td>用户年龄</td>
                <td>用户信息</td>
                <td>操作</td>
            </tr>
        <c:forEach items="${list }" var="user">
            <tr>
                <td><input type="checkbox" name="ids" value="${user.id}"></td>
                <td>${user.name}</td>
                <td>${user.age}</td>
                <td>${user.sex}</td>
                <td>
                    <a href="${pageContext.request.contextPath}/delete?id=${user.id}">删除</a>
                    <a href="${pageContext.request.contextPath}/findById?id=${user.id}">修改</a>
                    <a href="${pageContext.request.contextPath}/jsp/add.jsp">添加</a>

                </td>
            </tr>
        </c:forEach>
        </table>
        <input type="submit" value="删除">
    </form>




</body>
</html>
